Skip to content
This repository has been archived by the owner on Nov 6, 2022. It is now read-only.

Commit

Permalink
Add non-ascii in status line test
Browse files Browse the repository at this point in the history
from Ben Noordhuis
  • Loading branch information
ry committed Nov 5, 2010
1 parent 51de89f commit fb875ca
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions test.c
Expand Up @@ -874,6 +874,30 @@ const struct message responses[] =
,.body= ""
}

#define NON_ASCII_IN_STATUS_LINE 11
/* Should handle non-ASCII in status line */
, {.name= "non-ASCII in status line"
,.type= HTTP_RESPONSE
,.raw= "HTTP/1.1 500 Oriëntatieprobleem\r\n"
"Date: Fri, 5 Nov 2010 23:07:12 GMT+2\r\n"
"Content-Length: 0\r\n"
"Connection: close\r\n"
"\r\n"
,.should_keep_alive= FALSE
,.message_complete_on_eof= FALSE
,.http_major= 1
,.http_minor= 1
,.status_code= 500
,.num_headers= 3
,.headers=
{ { "Date", "Fri, 5 Nov 2010 23:07:12 GMT+2" }
, { "Content-Length", "0" }
, { "Connection", "close" }
}
,.body= ""
}


, {.name= NULL } /* sentinel */
};

Expand Down

0 comments on commit fb875ca

Please sign in to comment.