mirror of
https://github.com/schollz/cowyo.git
synced 2023-08-10 21:13:00 +03:00
Uploading works, needs to be cleaned up
Former-commit-id: a6b599a5745eb9cacafe5057b1520ce13f9b9ad0 [formerly 7ae19693370546ef57f0ce7eebc4d1ba8b27b0ed] [formerly 780e9e395f850306c571135ee71fa6c7de7b3514 [formerly 10fcaa6ece761a02cdaae48c068159505047e421 [formerly7250ebc0a2
]]] Former-commit-id: f083224c91a11cc2ba967146986811080d380f08 [formerly 9eecf8f5c034a35363d15a3f40cd127e06e72e74] Former-commit-id: 43edf2a5d2d0e11954a866cc2b3786f4ebd2021c Former-commit-id:eb8bd29dd7
This commit is contained in:
parent
279bacc9e8
commit
0a364fd68a
5
main.go
5
main.go
@ -153,13 +153,14 @@ Options:`)
|
||||
}
|
||||
buf := new(bytes.Buffer)
|
||||
buf.ReadFrom(reader)
|
||||
s := buf.String() // Does a complete copy of the bytes in the buffer.
|
||||
fmt.Println("---------------")
|
||||
fmt.Println(s)
|
||||
fmt.Println(buf.String())
|
||||
fmt.Println("---------------")
|
||||
fmt.Println(c.ContentType())
|
||||
fmt.Println(c.Request.Header)
|
||||
fmt.Println("---------------")
|
||||
p := WikiData{filename, "", []string{}, []string{}, false, ""}
|
||||
p.save(buf.String())
|
||||
})
|
||||
r.GET("/:title/*option", everythingElse)
|
||||
r.POST("/:title/*option", encryptionRoute)
|
||||
|
Loading…
Reference in New Issue
Block a user