zhangguanzhang

Results 195 comments of zhangguanzhang

Ok, please notify me if there is any progress

> I found a probelm with the code: ``` $ cat test.go package main import ( "fmt" "os" ) func main() { fi, _ := os.Stdin.Stat() fmt.Printf("size: %d\n", fi.Size()) }...

> @zhangguanzhang When reading from stdin, we could assume that we don't know the final content length. For asset uploads, use `asset.Size = -1` to indicate unknown size. That may...

> You can try editing the `http.Request` in the `uploadAsset()` function to add `req.TransferEncoding = ["chunked"]`, but per Go documentation, I'm not sure if that's going to help. The docs...

> It seems so! Then reading stdin to a temporary file would be the only way. It's not ideal, but it shouldn't present a problem except on systems where disk...

> > Can you discuss with the relevant people and go forward with this support? > > Sorry, what do you mean? Discuss what, and who would the relevant people...

> > the developer for `https://uploads.github.com/` > > I see. I'm guessing that you want me to ask them if they could add support for "chunked" transfer encoding on the...

``` docker info iptables -S ```