Mercurial > urweb
diff src/c/urweb.c @ 1119:951fced704d6
Basis.textBlob; support HTTP requests with no headers
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Tue, 05 Jan 2010 15:53:35 -0500 |
parents | 87b0a9d08e73 |
children | 74f2eb3b0606 |
line wrap: on
line diff
--- a/src/c/urweb.c Tue Jan 05 14:57:35 2010 -0500 +++ b/src/c/urweb.c Tue Jan 05 15:53:35 2010 -0500 @@ -3131,6 +3131,12 @@ return b.size; } +uw_Basis_blob uw_Basis_textBlob(uw_context ctx, uw_Basis_string s) { + uw_Basis_blob b = {strlen(s), s}; + + return b; +} + uw_Basis_blob uw_Basis_fileData(uw_context ctx, uw_Basis_file f) { return f.data; }