nicolasff / webdis

A Redis HTTP interface with JSON output
https://webd.is
BSD 2-Clause "Simplified" License
2.84k stars 304 forks source link

worker.c: worker_process_client() should return right after http_send_options() in worker.c #91

Closed wiwat-tharateeraparb closed 10 years ago

wiwat-tharateeraparb commented 10 years ago

Should the code at line 209 of worker.c be:

void
worker_process_client(struct http_client *c) {
...
case HTTP_OPTIONS:
    http_send_options(c);
    return; /* this return statement is missing */
...

This should solve Chrome issue when Basic Authentication is enabled.

wiwat-tharateeraparb commented 10 years ago

This issue causes Chrome to fail if Basic Authentication is used.

nicolasff commented 10 years ago

Fixed, thanks!