Commit 7f8cd667 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Only print debug for non-nil data.

parent c3e96abe
......@@ -55,7 +55,7 @@ func (me *request) InputDebug() string {
func (me *request) OutputDebug() string {
var val interface{}
if me.handler.DecodeOut != nil {
if me.handler.DecodeOut != nil && me.outData != nil {
val = me.handler.DecodeOut(me.outData)
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment