Commits

Mario César Señoranis Ayala committed b49e387

Fix xml and atom feed by disabling default template layout

Comments (0)

Files changed (1)

hgwebproxy/views.py

         'is_root': request.path == repo.get_absolute_url(),
         'repo': repo,
     }
-
-    return render_to_response("hgwebproxy/wrapper.html", context, RequestContext(request))
+    
+    if request.path.endswith('hgwebproxy/rss-log') or request.path.endswith('hgwebproxy/atom-log'):
+        return HttpResponse(response.content, mimetype='application/xml')
+    else:
+        return render_to_response("hgwebproxy/wrapper.html", context, RequestContext(request))