Applied. Thanks.

On Fri, Mar 21, 2014 at 10:11 AM, Michael Markstaller <m...@elabnet.de> wrote:

> On 21.03.2014 02:05, Paul Alfille wrote:
> > What's the error page that's being discussed? Can you outline a command
> > sequence that triggers it so I can investigate?
> >
> > Thanks,
> >
> > Paul
>
> Whenever a non-existing path is selected, it looks like in
> owhttpd_handler.c ct_json / ct_text is disregarded and HTML-output
> instead..
>
> Michael
>
>
> CVS Diff to add CORS-Header and valid JSON-output on values (both
> works!) and an empty JSON object on errors (doesn't work):
>
>
> Index: module/owhttpd/src/c/owhttpd_handler.c
> ===================================================================
> RCS file: /cvsroot/owfs/owfs/module/owhttpd/src/c/owhttpd_handler.c,v
> retrieving revision 1.101
> diff -r1.101 owhttpd_handler.c
> 344c344
> <                       fprintf(out, "null");
> ---
> >                       fprintf(out, "{ }");
> 351a352
> >                       HTTPfoot(out);
> 353d353
> <       HTTPfoot(out);
> 366c366
> <                       fprintf(out, "null");
> ---
> >                       fprintf(out, "{ }");
> 373a374
> >               HTTPfoot(out);
> 375d375
> <       HTTPfoot(out);
> Index: module/owhttpd/src/c/owhttpd_present.c
> ===================================================================
> RCS file: /cvsroot/owfs/owfs/module/owhttpd/src/c/owhttpd_present.c,v
> retrieving revision 1.17
> diff -r1.17 owhttpd_present.c
> 45a46
> >               fprintf(out, "Access-Control-Allow-Origin: *\r\n");
> Index: module/owhttpd/src/c/owhttpd_read.c
> ===================================================================
> RCS file: /cvsroot/owfs/owfs/module/owhttpd/src/c/owhttpd_read.c,v
> retrieving revision 1.52
> diff -r1.52 owhttpd_read.c
> 630a631
> >               fprintf(out, "[ " );
> 631a633
> >               fprintf(out, " ]" );
>
>
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and their
> applications. Written by three acclaimed leaders in the field,
> this first edition is now available. Download your free book today!
> http://p.sf.net/sfu/13534_NeoTech
> _______________________________________________
> Owfs-developers mailing list
> Owfs-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/owfs-developers
>
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to