~ubuntu-branches/ubuntu/wily/trafficserver/wily

« back to all changes in this revision

Viewing changes to proxy/http/testheaders.cc

  • Committer: Package Import Robot
  • Author(s): Adam Conrad
  • Date: 2012-12-17 22:28:16 UTC
  • mfrom: (5.1.8 raring-proposed)
  • Revision ID: package-import@ubuntu.com-20121217222816-7xwjsx5k76zkb63d
Tags: 3.2.0-1ubuntu1
* Revert FreeBSD strerror_r() fixes that give errors with glibc 2.16.
* Apply patch from Konstantinos Margaritis to define barriers on ARM.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 */
23
23
 
24
24
#include "ink_unused.h"    /* MAGIC_EDITING_TAG */
 
25
#include "ink_string.h"    
25
26
#include "HttpTransact.h"
26
27
#include "HttpTransactHeaders.h"
27
28
 
 
29
#define MAX_FIELD_VALUE_SIZE 512
 
30
 
28
31
char request1[] =
29
32
  "GET http://people.netscape.com/jwz/hacks-1.gif HTTP/1.0\r\n"
30
33
  "If-Modified-Since: Wednesday, 26-Feb-97 06:58:17 GMT; length=842\r\n"
90
93
  /* This if is needed to put in the commas correctly */
91
94
  if (hfv) {
92
95
    str = hfv->get_raw();
93
 
    strcat(full_str, str);
 
96
    ink_strlcat(full_str, str, MAX_FIELD_VALUE_SIZE);
94
97
    hfv = hfv->next();
95
98
  }
96
99
  while (hfv) {
97
100
    str = hfv->get_raw();
98
 
    strcat(full_str, ", ");
99
 
    strcat(full_str, str);
 
101
    ink_strlcat(full_str, ", ", MAX_FIELD_VALUE_SIZE);
 
102
    ink_strlcat(full_str, str, MAX_FIELD_VALUE_SIZE);
100
103
    hfv = hfv->next();
101
104
  }
102
105
}
103
106
 
104
 
#define MAX_FIELD_VALUE_SIZE 512
105
107
void
106
108
test_headers()
107
109
{