{"action":"created","issue":{"url":"https://api.github.com/repos/beego/samples/issues/4","labels_url":"https://api.github.com/repos/beego/samples/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/beego/samples/issues/4/comments","events_url":"https://api.github.com/repos/beego/samples/issues/4/events","html_url":"https://github.com/beego/samples/issues/4","id":43766765,"number":4,"title":"/v1/shorten 接口连续传入相同的url会 crash","user":{"login":"scottliyq","id":1333896,"avatar_url":"https://avatars.githubusercontent.com/u/1333896?v=3","gravatar_id":"","url":"https://api.github.com/users/scottliyq","html_url":"https://github.com/scottliyq","followers_url":"https://api.github.com/users/scottliyq/followers","following_url":"https://api.github.com/users/scottliyq/following{/other_user}","gists_url":"https://api.github.com/users/scottliyq/gists{/gist_id}","starred_url":"https://api.github.com/users/scottliyq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottliyq/subscriptions","organizations_url":"https://api.github.com/users/scottliyq/orgs","repos_url":"https://api.github.com/users/scottliyq/repos","events_url":"https://api.github.com/users/scottliyq/events{/privacy}","received_events_url":"https://api.github.com/users/scottliyq/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-09-24T13:50:49Z","updated_at":"2015-07-23T07:19:58Z","closed_at":null,"body":"第二次传入同一个url, 的时候这行代码返回值是nil, 不知道是不是cache的bug。\r\nresult.UrlShort = urlcache.Get(urlmd5).(string)\r\n\r\n2014/09/24 21:44:14 [C] the request url is  /v1/shorten \r\n2014/09/24 21:44:14 [C] Handler crashed with error interface conversion: interface is nil, not string \r\n2014/09/24 21:44:14 [C] /usr/local/go/src/pkg/runtime/panic.c:248 \r\n2014/09/24 21:44:14 [C] /private/var/folders/00/0sdwh000h01000cxqpysvccm0035qk/T/makerelease530016500/go/src/pkg/runtime/iface.goc:292 \r\n2014/09/24 21:44:14 [C] /private/var/folders/00/0sdwh000h01000cxqpysvccm0035qk/T/makerelease530016500/go/src/pkg/runtime/iface.goc:280 \r\n2014/09/24 21:44:14 [C] /Users/1/kanbox/gocode/src/shorturl/controllers/short.go:36 \r\n2014/09/24 21:44:14 [C] /Users/1/kanbox/gocode/src/github.com/astaxie/beego/router.go:721 \r\n2014/09/24 21:44:14 [C] /usr/local/go/src/pkg/net/http/server.go:1673 \r\n2014/09/24 21:44:14 [C] /usr/local/go/src/pkg/net/http/server.go:1174 \r\n2014/09/24 21:44:14 [C] /usr/local/go/src/pkg/runtime/proc.c:1445 "},"comment":{"url":"https://api.github.com/repos/beego/samples/issues/comments/124003264","html_url":"https://github.com/beego/samples/issues/4#issuecomment-124003264","issue_url":"https://api.github.com/repos/beego/samples/issues/4","id":124003264,"user":{"login":"crazygit","id":1240997,"avatar_url":"https://avatars.githubusercontent.com/u/1240997?v=3","gravatar_id":"","url":"https://api.github.com/users/crazygit","html_url":"https://github.com/crazygit","followers_url":"https://api.github.com/users/crazygit/followers","following_url":"https://api.github.com/users/crazygit/following{/other_user}","gists_url":"https://api.github.com/users/crazygit/gists{/gist_id}","starred_url":"https://api.github.com/users/crazygit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crazygit/subscriptions","organizations_url":"https://api.github.com/users/crazygit/orgs","repos_url":"https://api.github.com/users/crazygit/repos","events_url":"https://api.github.com/users/crazygit/events{/privacy}","received_events_url":"https://api.github.com/users/crazygit/received_events","type":"User","site_admin":false},"created_at":"2015-07-23T07:19:58Z","updated_at":"2015-07-23T07:19:58Z","body":"恩，现在还是有这个问题"}}