Fix incorrect header removal length

This commit is contained in:
Eliot Whalan 2016-06-19 10:17:35 +10:00
parent 1b46830f95
commit 72b3947793
No known key found for this signature in database
GPG Key ID: C0A42175139840D6
1 changed files with 4 additions and 3 deletions

View File

@ -2,12 +2,13 @@ package main
import (
"fmt"
"github.com/dchest/uniuri"
"github.com/ewhal/pygments"
"io"
"io/ioutil"
"net/http"
"os"
"github.com/dchest/uniuri"
"github.com/ewhal/pygments"
)
const (
@ -45,7 +46,7 @@ func generateName() string {
}
func save(raw []byte) string {
paste := raw[92 : len(raw)-46]
paste := raw[85 : len(raw)-46]
s := generateName()
location := DIRECTORY + s