OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.4 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../xavante/204.patch
  5. # Copyright (C) 2009 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. --- ./src/xavante/httpd.lua.orig 2009-06-02 17:21:38.000000000 +0200
  17. +++ ./src/xavante/httpd.lua 2009-06-02 18:16:08.000000000 +0200
  18. @@ -4,6 +4,8 @@
  19. -- Authors: Javier Guerra and Andre Carregal
  20. -- Copyright (c) 2004-2007 Kepler Project
  21. --
  22. +-- vim:set ts=4 sw=4 et:
  23. +--
  24. -- $Id: httpd.lua,v 1.44 2009/02/11 20:56:15 carregal Exp $
  25. -----------------------------------------------------------------------------
  26. @@ -259,7 +261,8 @@
  27. res.headers["Content-Length"] = string.len (res.content)
  28. end
  29. end
  30. - else
  31. + elseif res.statusline == "HTTP/1.1 200 OK" or res.statusline == "HTTP/1.1 OK" then
  32. + -- only turn 200s into 204s
  33. if not res.sent_headers then
  34. res.statusline = "HTTP/1.1 204 No Content"
  35. res.headers["Content-Length"] = 0