Opened 3 years ago

Last modified 3 years ago

#17825 new defect

uhttpd.send() broken in BB

Reported by: clauz@… Owned by: developers
Priority: normal Milestone:
Component: packages Version: Barrier Breaker 14.07
Keywords: Cc:


The example in this page (section "embedded lua"):
yields a "bad gateway" from uhttpd.

Attachments (0)

Change History (2)

comment:1 Changed 3 years ago by clauz@…

Changing the handle_request function to:

function handle_request(env)
        print("Content-Type: text/plain\r\n\r\n")
        print("Hello world.\n")

works, instead.

comment:2 Changed 3 years ago by yousong

uhttpd2 only accepts status line of the form "Status: 200 OK" and defaults to this value if it is missing from cgi scripts.

Last edited 3 years ago by yousong (previous) (diff)

Add Comment

Modify Ticket

as new .

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.