> still doesn't validate (all things are strings) but this patch makes a
> start on content-type
... or at least, might do if I remember to also patch the header to
add in a new enum
[andrew@skidmark include]$ cvs diff -u
cvs diff: Diffing .
Index: owhttpd.h
===================================================================
RCS file: /cvsroot/owfs/owfs/module/owhttpd/src/include/owhttpd.h,v
retrieving revision 1.23
diff -u -r1.23 owhttpd.h
--- owhttpd.h 9 Oct 2012 01:37:23 -0000 1.23
+++ owhttpd.h 8 May 2013 13:14:27 -0000
@@ -38,7 +38,7 @@
int handle_socket(FILE * out);
/* in owhttpd_present */
-enum content_type { ct_text, ct_html, ct_icon };
+enum content_type { ct_text, ct_html, ct_icon, ct_json };
void HTTPstart(FILE * out, const char *status, const enum content_type ct);
void HTTPtitle(FILE * out, const char *title);
void HTTPheader(FILE * out, const char *head);
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and
their applications. This 200-page book is written by three acclaimed
leaders in the field. The early access version is available now.
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers