Roxen.git / server / etc / test / tests / http / http_common.pike

version» Context lines:

Roxen.git/server/etc/test/tests/http/http_common.pike:53:    int chars )   {    foreach( what/((float)chars), string w )    {    to->write( w );    sleep( 0.01 );    }   }      #define EXIT(X) while(1){write("\n\n\nThe offending response header:\n%O\n\n" \ -  "Protocol: %O\nReturn code: %d (%d)\nResponse mapping: %O\n", \ -  headers,prot,code,expected_code,hd);exit((X));} +  "Protocol: %O (%O)\n" \ +  "Return code: %d (%d)\n" \ +  "Response mapping: %O\n", \ +  headers,prot,expected_prot, \ +  code,expected_code,hd);exit((X));}      void verify_headers( string headers, int content_length,    string expected_prot, int expected_code,    int want_last_modified, )   {    array q = headers / "\r\n";    string prot;    int code;    string message;    mapping hd = ([]);