Hi guys,

I tend to think that I'm stupid, because I don't get why I'm not able to use 
public folder with jester.

I try to give as much information as possible: 
    
    
    C:\Users\cutter\Desktop\webtest>nim -v
    Nim Compiler Version 0.19.0 [Windows: amd64]
    Compiled at 2018-09-26
    Copyright (c) 2006-2018 by Andreas Rumpf
    
    git hash: f6c5c636bb1a1f4e1301ae0ba5a8afecef439132
    active boot switches: -d:release
    
    C:\Users\cutter\Desktop\webtest>tree /f
    Auflistung der Ordnerpfade
    Volumeseriennummer : CE7F-6DCD
    C:.
    │   hello.exe
    │   hello.nim
    │
    └───public
        │   hm.html
        │
        └───movie
                DVD571_05.mp4
    
    
    C:\Users\cutter\Desktop\webtest>type hello.nim
    import htmlgen
    import jester
    
    routes:
      get "/":
        resp h1("hello world")
      get "/test":
        resp a(href="movie/DVD571_05.mp4", "gogo")
      get "/test2":
        resp a(href="hm.html", "click for hm")
    
    
    Run

Then, if I try to > 
[http://localhost:5000/movie/DVD571_05.mp4](http://localhost:5000/movie/DVD571_05.mp4)
 or [http://localhost:5000/hm.html](http://localhost:5000/hm.html) I get: 
    
    
    :\Users\cutter\Desktop\webtest>hello
    INFO Jester is making jokes at http://127.0.0.1:5000 (all interfaces)
    DEBUG GET /hm.html
    DEBUG   400 Bad Request {"content-type": @["text/html;charset=utf-8"]}
    DEBUG GET /favicon.ico
    DEBUG   400 Bad Request {"content-type": @["text/html;charset=utf-8"]}
    DEBUG GET /movie/DVD571_05.mp4
    DEBUG   400 Bad Request {"content-type": @["text/html;charset=utf-8"]}
    DEBUG GET /favicon.ico
    DEBUG   400 Bad Request {"content-type": @["text/html;charset=utf-8"]}
    
    Run

Can you tell me please where I am wrong? I just don't get it ;-) Why do I get 
400 and not an by me expectet 404 on favicon.ico and why do I get a Bad Request 
at all? Maybe it's me, but I'm not really sure.

Thank you for your time! Gregor 

Reply via email to