Explorar o código

HttpResponseBody.HTML is undefined

Soutaro Matsumoto %!s(int64=10) %!d(string=hai) anos
pai
achega
c5d29e5b92
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Common/HttpHandlers.swift

+ 1 - 1
Common/HttpHandlers.swift

@@ -74,7 +74,7 @@ public class HttpHandlers {
                             var response = "<h3>\(filePath)</h3></br><table>"
                             response += files.map({ "<tr><td><a href=\"\(request.url)/\($0)\">\($0)</a></td></tr>"}).joinWithSeparator("")
                             response += "</table>"
-                            return HttpResponse.OK(.HTML(response))
+                            return HttpResponse.OK(.Html(response))
                         } catch  {
                             return HttpResponse.NotFound
                         }