[X2Go-Commits] x2gobroker.git - master (branch) updated: 0.0.1.0-69-g31a93ea

X2Go dev team git-admin at x2go.org
Fri Apr 26 00:53:21 CEST 2013


The branch, master has been updated
       via  31a93ead8a1fada72e134a8f9e48e6f8c30beb05 (commit)
      from  87e42dc92a6aa376c672c903ccaa59284718d0e9 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
-----------------------------------------------------------------------

Summary of changes:
 x2gobroker/web/html.py |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

The diff of changes is:
diff --git a/x2gobroker/web/html.py b/x2gobroker/web/html.py
index 0e1988f..0cfb97e 100644
--- a/x2gobroker/web/html.py
+++ b/x2gobroker/web/html.py
@@ -65,11 +65,12 @@ $output
             self.set_header(http_header_item, self.http_header_items[http_header_item])
 
     def get(self, backend):
-        self._gen_http_header()
         return self.post(backend)
 
     def post(self, backend):
 
+        self._gen_http_header()
+
         if not backend:
             backend = _X2GOBROKER_DEFAULT_BACKEND
         else:
@@ -83,7 +84,7 @@ $output
             exec("broker_backend = x2gobroker.brokers.{backend}_broker.X2GoBroker()".format(backend=backend))
         except ImportError:
             # throw a 404 if the backend does not exist
-            raise tornado.web.HTTPError(404)
+            raise tornado.web.HTTPError(405)
 
         global_config = broker_backend.get_global_config()
         backend_config = broker_backend.get_backend_config(backend)


hooks/post-receive
-- 
x2gobroker.git (HTTP(S) Session broker for X2Go)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "x2gobroker.git" (HTTP(S) Session broker for X2Go).




More information about the x2go-commits mailing list