mirror of
https://github.com/adamdruppe/arsd.git
synced 2025-04-26 13:20:05 +03:00
some x64 fixes
This commit is contained in:
parent
992b887559
commit
5b12187850
8 changed files with 53 additions and 53 deletions
6
http.d
6
http.d
|
@ -59,14 +59,14 @@ struct UriParts {
|
|||
if(uri[0..7] != "http://")
|
||||
throw new Exception("You must use an absolute, unencrypted URL.");
|
||||
|
||||
int posSlash = uri[7..$].indexOf("/");
|
||||
auto posSlash = uri[7..$].indexOf("/");
|
||||
if(posSlash != -1)
|
||||
posSlash += 7;
|
||||
|
||||
if(posSlash == -1)
|
||||
posSlash = uri.length;
|
||||
|
||||
int posColon = uri[7..$].indexOf(":");
|
||||
auto posColon = uri[7..$].indexOf(":");
|
||||
if(posColon != -1)
|
||||
posColon += 7;
|
||||
|
||||
|
@ -160,7 +160,7 @@ body {
|
|||
int size;
|
||||
int start = 0;
|
||||
for(int a = 0; a < response.length; a++) {
|
||||
switch(state) {
|
||||
final switch(state) {
|
||||
case 0: // reading hex
|
||||
char c = response[a];
|
||||
if((c >= '0' && c <= '9') || (c >= 'a' && c <= 'z')) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue