658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
|
*buffer = '\0';
buffer++;
path = buffer;
/* Terminate path component */
buffer = strstr(buffer, "\r\n ");
if (buffer != NULL) {
*buffer = '\0';
buffer++;
}
/* We only handle the "GET" and "HEAD' methods */
if (strcasecmp(method, "head") != 0) {
|
|
|
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
|
*buffer = '\0';
buffer++;
path = buffer;
/* Terminate path component */
buffer = strpbrk(buffer, "\r\n ");
if (buffer != NULL) {
*buffer = '\0';
buffer++;
}
/* We only handle the "GET" and "HEAD' methods */
if (strcasecmp(method, "head") != 0) {
|